package com.tchepannou.limbe.validation;

import javax.validation.constraints.Min;
import java.lang.reflect.Field;

/**
 * User: herve
 * Date: 14-01-12 12:23 PM
 */
public class MinValidator extends DecimalMinValidator
{

    protected Double getMin (Field field)
    {
        Min anno = field.getAnnotation(Min.class);
        if (anno == null)
        {
            return null;
        }

        return (Double)_converter.convert(anno.value());
    }

}
